.hc-form-template {
    //默认表格
    border-right: 0;
    border: 1px solid black;

    .hc-row {
        display: flex;
        align-items: stretch;
        border-bottom: 1px solid black;

        &:last-child {
            border-bottom: 0;
        }

        .hc-col {
            position: relative;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
            flex: 1;
            flex-shrink: 0;
            background-color: #fff;
            box-sizing: border-box;

            &::before {
                content: "";
                position: absolute;
                width: 1px;
                height: 100%;
                top: 0;
                right: 0;
                background: black;
                z-index: 5; // 处理会议室使用情况一览边框在有的浏览器比例下不显示问题
            }

            &:last-child {
                &::before {
                    width: 0px;
                }
            }

            .field-item {
                height: 100%;
                display: flex;
                padding: 0 5px;
                align-items: center;

                .rule-red {
                    position: absolute;
                    left: 4px;
                    bottom: 0;
                    background: rgba(0, 0, 0, 0.2);
                    padding: 4px 6px;
                    font-size: 10px;
                    line-height: 1em;
                    border-radius: 5px;
                }
            }
        }

        .form-label {
            padding: 0 20px;
            font-size: 16px;
            text-align-last: center;
            color: black;
            flex: 1;
        }

        .flex-1 {
            flex: 1;
            flex-shrink: 0;
        }

        .flex-2 {
            flex: 2;
        }

        .flex-3 {
            flex: 3;
        }

        .flex-4 {
            flex: 4;
        }

        .flex-5 {
            flex: 5;
        }

        .flex-6 {
            flex: 6;
        }

        .flex-7 {
            flex: 7;
        }

        .flex-8 {
            flex: 8;
        }

        .flex-9 {
            flex: 9;
        }

        .flex-10 {
            flex: 10;
        }

        .flex-11 {
            flex: 11;
        }

        .flex-12 {
            flex: 12;
        }

        .flex-13 {
            flex: 13;
        }

        .flex-14 {
            flex: 14;
        }

        .flex-18 {
            flex: 18;
        }

        .flex-15 {
            flex: 15;
        }

        .flex-19 {
            flex: 19;
        }

        .flex-21 {
            flex: 21;
        }

        .flex-22 {
            flex: 22;
        }

        .field-box {
            position: relative;
            height: 100%;
            width: 100%;
            // min-height: 60px
        }
    }

    &.color-blue {
        border: 1px solid #409eff;

        .hc-row {
            border-bottom: 1px solid #409eff;

            &:last-child {
                border-bottom: 0;
            }

            .hc-col {
                &::before {
                    background: #409eff;
                }
            }

            .form-label {
                color: #409eff;
            }
        }
    }

    &.color-red {
        border: 1px solid red;

        .hc-row {
            border-bottom: 1px solid red;

            &:last-child {
                border-bottom: 0;
            }

            .hc-col {
                &::before {
                    background: red;
                }
            }

            .form-label {
                color: red;
            }
        }
    }

    &.color-gray {
        border: 1px solid #c9c9c9;

        .hc-row {
            border-bottom: 1px solid #c9c9c9;

            &:last-child {
                border-bottom: 0;
            }

            .hc-col {
                &::before {
                    background: #c9c9c9;
                }

                .field-item {
                    .el-input.is-disabled .el-input__inner {
                        opacity: .8;
                    }
                }
            }

            .form-label {
                text-align-last: center;
                color: #333;
            }
        }
    }

    //不线条的表格
    &.theme-three {
        border: 0px;

        .hc-row {
            border: 0;
            // border-bottom: 1px solid #ddd;
            padding: 5px 0;

            &:last-child {
                border-bottom: 0;
            }

            .hc-col {
                text-align: left;
                min-height: 50px;
                font-size: 14px;
                justify-content: flex-start;

                &::before {
                    display: none;
                }
            }

            .form-label {
                width: 100%;
                // background: transparent;
                font-weight: normal;
                // background: #e6f7ff;
                color: #333;
                // min-height: 40px;
                box-sizing: border-box;
                padding: 10px 20px;
                line-height: 1em;
                text-align-last: right;

                &.hc-col {
                    justify-content: flex-start;
                }
            }

            .field-item {
                justify-content: flex-start;
                padding-left: 10px;
                padding-right: 10px;

                .rule-red {
                    bottom: -10px;
                }
            }

            .fileList {
                .fileItem {
                    justify-content: flex-start;
                }
            }
        }

        //禁用
        .disabled-text {
            width: 100%;
            height: 36px;
            line-height: 36px;
            background: #eeeeeea1;
            border-radius: 5px;
        }
    }

    // 滁州科研
    &.theme-ky {
        width: 90%;
        margin: 0 5%;
        border: 0;

        .hc-row {
            border: 0;
            border-bottom: 1px solid #ddd;
            padding: 5px 0;

            &:last-child {
                border-bottom: 0;
            }

            .hc-col {
                text-align: left;
                min-height: 40px;
                font-size: 14px;

                &::before {
                    content: "";
                    position: absolute;
                    width: 1px;
                    height: 100%;
                    top: 0;
                    right: 0;
                    background: transparent;
                }

                &::after {
                    display: none;
                }

                .label-require {
                    width: 10px;
                    position: absolute;
                    left: -20px;
                    top: 50%;
                    transform: translateY(-50%);
                    color: #fd0e05;
                }
            }

            .form-label {
                background: transparent;
                font-weight: normal;
                // margin-right: 10px;
                background: #e6f7ff;
                // width: 150px;
                // flex: auto;
                // flex:0 1 auto;
                flex: 1;
                color: #333;
                // padding-left: 20px;
                box-sizing: border-box;

                &::before {
                    content: "";
                    width: 20px;
                    height: 100%;
                    display: inline-block;
                    background: transparent;
                }

                &.hc-col {
                    justify-content: flex-start;
                }
            }

            .field-item {
                justify-content: flex-start;
                padding-left: 10px;
                padding-right: 10px;

                .rule-red {
                    //    width: 50px;
                    left: 215px;
                    height: 20px;
                    bottom: -5px;
                    z-index: 1;
                    top: 50%;
                    transform: translateY(-50%);
                    display: none;
                }

            }

            .fileList {
                .fileItem {
                    justify-content: flex-start;
                }
            }

            .ant-input {
                box-sizing: border-box;
                border: 1px solid #dfdfdf;

                box-shadow: none;
                padding: 0 10px;
                text-align: left;
                width: 200px;
                height: 32px;

                // line-height: 32px;
                &:focus {
                    border-color: #8299e7;
                }
            }

            .avatar-uploader {
                width: 80%;
                margin: 0 auto;
                height: 100%;
                display: flex;
                justify-content: center;
            }

            .chose-input {
                .ant-input {
                    padding-right: 30px;
                }
            }

            textarea.ant-input {
                width: 100%;
                height: 100%;
                padding: 4px 10px;
                // margin: 10px;
            }

            .ant-select {
                width: auto;
            }

            .ant-select-selection {
                width: 200px;
                border: 1px solid #dfdfdf;
                justify-content: flex-start;
            }

            .ant-input-number {
                width: 200px;
            }

            .ant-select-disabled {
                background-color: #f5f5f5;
                color: rgba(0, 0, 0, 1);
                width: 200px;
                height: 32px;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 4px;
                border: 0;

                .ant-select-selection {
                    border: 0;
                }
            }
        }
    }

    &.ky-zibiaodan {
        border: 1px solid #8299e7;

        .hc-row {
            border-bottom: 1px solid #8299e7;

            &:last-child {
                border-bottom: 0;
            }

            .hc-col {
                min-height: 60px;
            }
        }

        .zibiaodan-box {
            margin-top: 0;

            table {
                border: 0;

                thead th {
                    border-bottom: 1px solid #8299e7;
                    border-right: 1px solid #8299e7;

                    &:last-child {
                        border-right: 0px;
                    }
                }

                td {
                    border-right: 1px solid #8299e7;

                    &::before {
                        border-right: 0px;
                    }
                }
            }
        }
    }
    //党校人事
    &.dxrs-theme {
        .hc-row{
            border-bottom: 2px solid #c9c9c9;
        }
    }
}

.formTitle {
    font-size: 25px;
    font-family: 华文中宋, sans-serif;
    text-align: left;
    font-weight: bold;
    color: #333;
    padding-left: 25px;
    // margin:0 20px;
    margin-bottom: 10px;
    text-align: center;
    cursor: default;
}

.color-red {
    color: #ff0069 !important;
}

.el-menu--horizontal .el-menu-item:not(.is-disabled):hover,
.el-menu--horizontal .el-menu-item:not(.is-disabled):focus {
    border-bottom: 1px solid #0C64EB !important;
}

//子表单不显示必填*
.zibiaodan-box {
    .label-require {
        display: none;
    }
}

//表单中带事件的label
.HC-link {
    color: #ff0069;
    cursor: pointer;
}

.field-box {
    position: relative;

    //让文本域高度为100%
    &.hc-textarea-box {
        height: 100%;

        .field-item {
            height: 100%;

            .hc-textarea {
                height: 100%;

                .el-textarea__inner {
                    height: 100%;
                }
            }
        }
    }

    .label-require {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #fd0e05;
        z-index: 1;
    }

    .rule-red {
        position: absolute;
        right: 4px;
        bottom: -4px;
        z-index: 1;
        color: #fd0e05;
        font-size: 12px;
        // transform: translateY(-50%);
    }

    //表单项禁用样式
    .disabled-text {
        color: #333;
    }
}

.el-table {
    border-radius: 8px;
}

//让表格更加紧凑
.el-table .el-table__cell {
    padding: 10px 0;

    .cell {
        padding: 0 4px;
    }
}

// 旧的模板表格
.formTable table {
    border-collapse: collapse;
}

.hc-form .formTable {
    padding: 20px;
}

// 菏泽表单样式
.hz .hc-form #pdfDom-box {
    background: linear-gradient(to bottom, #ffffff, #fffdfd70);
}

.hz .hc-page {
    height: 100%;
    background: linear-gradient(to bottom, #ffffff, #fffdfd70) !important;

    #content,
    #content .typeList {
        background: transparent !important;
    }
}

.hz .hc-form .formTable {
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff, #fffdfd70);

    table {
        background: linear-gradient(to bottom, #ffffff, #fffdfd70) !important;

        .field-item .el-input__inner {
            background: transparent !important;
        }
    }
}

.hz .hc-container .el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
    border-bottom-color: transparent !important;
}

.hz .hc-container .el-tabs .el-tabs__content {
    padding: 0 80px;

    .formTable,
    .formTable table {
        background: transparent !important;

        .redText {
            position: relative;
        }

        .el-input__inner {
            background: transparent !important;
        }
    }
}

.hz .hc-container .el-tabs__content .hc-reportTable .el-table {
    width: 100% !important;
    max-width: 100% !important;
}

//设置日期选择框的图标在右边
.HC-date {
    .el-input__prefix {
        left: auto;
        width: 25px;
        right: 25px;
        text-align: right;
    }
}

//修改所以模板的头部高度
.el-dialog__header {
    padding-top: 15px;

    .el-dialog__headerbtn {
        top: 20px;
    }
}

.el-dialog__body {
    padding: 5px 20px 10px;
}

/* 党建表单样式*/

.DJForm .zibiaodan table {
    width: 100%;
    // transform: translateY(-5%);
    text-align: center;
    border-color: white;
}

.DJForm table {
    border-collapse: collapse;
    margin: 20px;
    width: 95%;
    margin: 0 auto;
    background: #fff;
    border-style: solid;
    border-color: #00bfff4f;
}

.DJForm table tr td {
    // height: 40px;
    line-height: 2;
    border-style: solid;
    border-width: 0.1vh;
    border-color: lightskyblue;
}

.DJForm table:not(.dyda) tr {
    display: flex;
}

.DJForm table tr td:not(.label) {
    flex: 1;
}

.DJForm table tr td.label {
    // width: 80px;
    background: #e6f7ff;
    // border-radius: 5px;
    display: flex;
    align-items: center;
}

.DJForm table tr td {
    padding: 6px 6px;
}

.DJForm table tr td .title {
    line-height: 25px;
    color: rgba(51, 51, 51, .8);
    font-family: 'sans-serif';
    font-weight: 400;
    display: inline-block;
    max-width: 100px;
    width: 100px;
    text-align: left;
    text-align: justify;
    text-align-last: justify;
    margin-bottom: 0px;
}

.DJForm .dateStartToEnd {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.DJForm table tr td .content {
    /* border: 1px solid #d9d9d9; */
    border-radius: 4px;
    line-height: 1.5;
    min-width: calc(100% - 100px);
    // max-width: 1px;
    display: inline-block;
}

.DJForm .textarea {
    height: 120px;
}

.DJForm .ant-select-enabled,
.DJForm .ant-input-number,
.DJForm .ant-calendar-picker {
    width: 100% !important;
}

.DJForm .zbd-title {
    padding-right: 0px;
    padding-left: 0;
    border: 0;
}


/*标题*/

.DJForm .fg-line {
    text-align: center;
    position: relative;
    font-weight: bold;
    /* border-bottom: 1px solid rgb(235, 237, 240); */
    line-height: 1em;
    padding: 10px 0;
    margin-bottom: 10px;
    font-size: 22px;
    font-family: Microsoft YaHei\, Microsoft YaHei-Regular, sans-serif;
    color: #333 !important;
}

.DJForm .fg-title {
    position: fixed;
    top: 94px;
    left: 50%;
    z-index: 1000
}


/*去掉子表单边框*/

.DJForm table thead th {
    border-right: 1px !important;
    border-bottom: 1px !important;
}

.DJForm .add-box {
    border-top: 1px !important;
}

.DJForm thead {
    border-bottom: 1px !important;
    display: flex;
    justify-content: space-around;
}

.DJForm tr {
    border-bottom: 1px !important;
}

/*必填标识*/

.DJForm .require:before {
    content: "*";
    font-size: 20px;
    color: red;
}

.DJForm .readbutton {
    float: right;
    margin-bottom: 10px;
    margin-right: 32px;
}

#app .hc-form-template .hc-reportTable .el-table {
    width: 100% !important;
    max-width: 100%;
}

//统一文本域字体
.el-textarea__inner {
    font-family: Arial, Helvetica, sans-serif;
}

.hc-view-page {
    margin-top: 5px;
}

body .el-table th.gutter {
    display: table-cell !important;
}

.gf-form-template {
    //默认表格
    border: 1px solid #8299e7;
    border-right: 0;

    .gf-row {
        display: flex;
        align-items: stretch;
        border-bottom: 1px solid #8299e7;

        &:last-child {
            border-bottom: 0;
        }

        .gf-col {
            min-height: 66px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
            text-align: center;
            flex-shrink: 0;
            background-color: #fff;
            position: relative;

            &::after {
                content: "";
                position: absolute;
                height: 100%;
                width: 1px;
                right: 0;
                top: 0;
                background-color: #8299e7;
            }

            .field-item {
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;

                .rule-red {
                    position: absolute;
                    left: 4px;
                    bottom: 0;
                    background: rgba(0, 0, 0, 0.2);
                    padding: 4px 6px;
                    font-size: 10px;
                    line-height: 1em;
                    border-radius: 5px;
                }
            }

            .ant-input {
                box-sizing: border-box;
                border: 0;
                width: 100%;
                height: 100%;
                box-shadow: none;
                padding: 0 10px;
                text-align: center;
            }

            textarea.ant-input {
                width: 90%;
                height: 90%;
                padding: 4px 10px;
                border: 1px solid #ddd;
                // margin: 10px;
            }

            .ant-select-selection {
                border: 0;
            }

            .ant-select {
                box-shadow: none !important;
                width: 100%;
            }

            .ant-select-selection {
                box-shadow: none !important;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .ant-select-selection:active {
                box-shadow: none;
            }

            .ant-select-selection:focus {
                box-shadow: none;
            }

            .ant-select-disabled {
                background-color: #f5f5f5;
                color: rgba(0, 0, 0, 1);
                // width: 244px;
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100%;
                border-radius: 4px;
            }
        }

        .form-label {
            background: #f6f7fa;
            font-weight: bold;
            flex: 1;
            font-size: 14px;

            .label-require {
                color: #fd0e05;
            }
        }

        .flex-1 {
            flex: 1;
            flex-shrink: 0;
        }

        .flex-2 {
            flex: 2;
        }

        .flex-3 {
            flex: 3;
        }

        .flex-4 {
            flex: 4;
        }

        .flex-5 {
            flex: 5;
        }

        .flex-6 {
            flex: 6;
        }

        .flex-7 {
            flex: 7;
        }

        .flex-8 {
            flex: 8;
        }

        .flex-9 {
            flex: 9;
        }

        .flex-10 {
            flex: 10;
        }

        .flex-11 {
            flex: 11;
        }

        .flex-13 {
            flex: 13;
        }

        .flex-14 {
            flex: 14;
        }

        .flex-18 {
            flex: 18;
        }

        .flex-15 {
            flex: 15;
        }

        .flex-19 {
            flex: 19;
        }

        .flex-21 {
            flex: 21;
        }

        .flex-22 {
            flex: 22;
        }
    }

    //展示
    &.theme-two {
        border: 0;

        .gf-row {
            border: 0;

            .form-label {
                background: transparent;
                text-align: justify;
                // justify-content: flex-end!important;
                line-height: 30px;
                padding-right: 10px;
                height: 30px;
                color: #000;
                font-weight: normal;

                &::after {
                    content: '';
                    width: 100%;
                    display: inline-block;
                    overflow: hidden;
                    height: 0;
                }
            }

            .gf-col {
                min-height: 30px;
                justify-content: flex-start;
                text-align: justify;

                &::after {
                    display: none;
                }
            }
        }

        .free-row {
            justify-content: space-between;
            flex-wrap: wrap;

            .form-label {
                flex: 0 1 auto;

                .gf-col {
                    &::after {
                        display: none;
                    }
                }
            }
        }
    }

    //不线条的表格
    &.theme-three {
        border: 1px solid #8299e7;

        .gf-row {
            border: 0;
            border-bottom: 1px solid #ddd;
            padding: 5px;

            &:last-child {
                border-bottom: 0;
            }

            .gf-col {
                text-align: left;
                min-height: 40px;
                font-size: 14px;

                &::after {
                    display: none;
                }
            }

            .field-box {
                width: 100%;
            }

            .form-label {
                background: transparent;
                font-weight: normal;
                // margin-right: 10px;
                background: #e6f7ff;
                // width: 150px;
                // flex: auto;
                // flex:0 1 auto;
                flex: 1;
                // padding-left: 20px;
                box-sizing: border-box;

                &::before {
                    content: "";
                    width: 20px;
                    height: 100%;
                    display: inline-block;
                    background: transparent;
                }

                &.gf-col {
                    justify-content: flex-start;
                }
            }

            .field-item {
                justify-content: flex-start;
                padding-left: 10px;
                padding-right: 10px;

                .rule-red {
                    //    width: 50px;
                    left: 215px;
                    height: 20px;
                    bottom: -5px;
                    z-index: 1;
                    top: 50%;
                    transform: translateY(-50%);
                    display: none;
                }
            }

            .label-require {
                left: -10px;
                right: auto;
            }

            .fileList {
                .fileItem {
                    justify-content: flex-start;
                }
            }

            .avatar-uploader {
                width: 80%;
                margin: 0 auto;
                height: 100%;
                display: flex;
                justify-content: center;
            }

            .chose-input {
                .ant-input {
                    padding-right: 30px;
                }
            }

            textarea.ant-input {
                width: 100%;
                height: 100%;
                padding: 4px 10px;
                // margin: 10px;
            }

            .el-select {
                width: 100%;
                // max-width: 200px;
            }

            .el-date-editor.el-input {
                width: 100%;
            }

            .el-input-number {
                width: 100% !important;
            }

            .el-cascader {
                width: 100% !important;
            }
        }
    }

    &.theme-four {
        .gf-row {
            .gf-col {
                // justify-content: flex-start;
                padding: 5px 0;

                .field-item {
                    justify-content: flex-start;
                }

                .field-box {
                    width: 100%;
                }

                .hc-textarea-box {
                    width: 100%;
                }

                textarea.ant-input {
                    width: 90%;
                    height: 90%;
                    padding: 4px 10px;
                    border: 1px solid #ddd;
                    // margin: 10px;
                }
            }

            .form-label {
                justify-content: center;
            }
        }
    }
}

#pdfDom-box .page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 57px;
    background: #fff;
}

#pdfDom-box .page-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    color: #000;
}

.hc-textarea-box {
    width: 100%;
}

.ant-btn-link {
    padding: 0;
}


.color-red {
    color: #ff0069 !important;
}

// .jghx-img{
//     width: 60px;
//     height: 54px;
//     background-image: url("~@/assets/img/zzhx/jghx.png");
//     background-size: 100% 100%;
// }

//全局表格样式
.hover-row td.el-table__cell {
    background-color: #ffefae !important;
}

th {
    color: #333;
    font-weight: normal;
}

.zibiaodan-box td {
    border-right: 1px solid #8299e7 !important;
}

.zibiaodan-box table {
    border: 0 !important;

    td:first-child {
        background: #fff;
    }
}

.zibiaodan-box thead {
    background: #e6f7ff;

    th:first-child {
        background: #e6f7ff;
    }
}

.zibiaodan-box {
    margin-top: 0 !important;
}

.xnspan {
    display: none;
}

//txt文本预览
.text-previe-box {
    width: 800px;
}

.text-previe-box .el-message-box__content {
    height: 400px;
    overflow: scroll;
}

//应急厅必填样式
.YJT .form-require .el-input__inner {
    background-color: #fcdd8b;
}

//loading 动画样式
.el-loading-spinner {
    font-size: 40px !important;
    color: #fff;
}

.el-loading-spinner  .el-icon-loading
{
    color: #fff;
}
.el-loading-spinner .el-loading-text {
    font-size: 34px !important;
    color: #fff!important;
}